package com.diy.sigmund.diycommon.designpatterns.observer;

/**
 * @author ylm-sigmund
 * @since 2022/1/14 15:22
 */
public class WeatherStation {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay currentDisplay = new CurrentConditionsDisplay(weatherData);
        // StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
        // ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
        weatherData.setMeasurements(80, 65, 30.4f);
        weatherData.setMeasurements(82, 70, 29.2f);
        weatherData.setMeasurements(78, 90, 29.2f);

        WeatherDataOne weatherDataOne = new WeatherDataOne();
        CurrentConditionsDisplayOne currentConditionsDisplayOne = new CurrentConditionsDisplayOne(weatherDataOne);
        weatherDataOne.setMeasurements(80, 65, 30.4f);
        weatherDataOne.setMeasurements(82, 70, 29.2f);
        weatherDataOne.setMeasurements(78, 90, 29.2f);
    }
}
